#include "HerzeleidPrecompiled.hxx"
#include "HerzeleidCoreApplicationView.hxx"
#include "HerzeleidCoreWindow.hxx"

using namespace HerzeleidAppModelCoreNamespaceImpl;
using namespace HerzeleidUICoreNamespaceImpl;

CoreApplicationView::CoreApplicationView() : 
	m_AssociatedWindow(nullptr),
	m_bIsHosted(false),
	m_bIsMain(false)
{
}

CoreApplicationView::~CoreApplicationView()
{
	PrintToDebugWindowOnly8("Herzeleid. Deleting application view.")

	if ( m_AssociatedWindow )
	{
		PrintToDebugWindowOnly8("Herzeleid. Deleting application view associated window.")

		m_AssociatedWindow->DestroyWindow();
		Safe_Delete( m_AssociatedWindow );
	}
}